import random

def addtext(txtname,span,insert):
  txtfile=open(txtname);
  txt=txtfile.readlines()
  txt=[line for line in txt]	
  txtfile.close()
  txtfile=open(txtname,'w')
  i=0
  while i+span<len(txt):
    txtfile.writelines(txt[i:i+span][0].strip('\n')+('\t'))
    txtfile.write(insert+random.choice("123"))
    txtfile.write('\n')
    i+=span
  txtfile.writelines(txt[i:len(txt)])
  txtfile.close()
addtext("datasets/application.csv",1,'')
